package com.guomao;

import com.entity.User;
import com.selfException.MyException;

public class ThrowableDemoE {

    //检查异常= checkedexception = 编译时异常
    //运行时异常 非检查异常 Runtimeexception
    public static void main(String[] args) throws Exception {

        User user = new User();
        try {
            user.setAge(10);
        } catch (MyException e) {
//            throw new Exception("",e);
        }
    }
}
